﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OMarketQualificationList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.MacModel.OMarketQualificationList" %>
<form id="pagerForm" method="post" action="MacModel/OMarketQualificationList.aspx">
<input type="hidden" name="ItemCode" value="<%=ItemCode %>" />
<input type="hidden" name="SerialNumber" value="<%=SerialNumber%>" />
<input type="hidden" name="SupplierName" value="<%=SupplierName%>" />

<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
</form>
<form id="form1" runat="server" method="post" action="MacModel/OMarketQualificationList.aspx" onsubmit="return navTabSearch(this);">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    物料号/名称： 
                </td>
                
                <td>
                   <input name="ItemCode" type="text" value="<%=ItemCode %>"  class="autocomplete" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getoitmlist" swidth="300"/>
                </td>
                <td>
                   供应商： 
                </td>
                <td>
                <input name="SupplierName" type="text" value="<%=SupplierName %>" />
                </td>
                <td>
                   机号： 
                </td>
                <td>
                <input name="SerialNumber" type="text" value="<%=SerialNumber %>" />
                </td>
                <td>
                    <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
        
    </div>
</div>
<div class="pageContent muchtrtable">
    <div class="panelBar">
        <ul class="toolBar">
            <% if (HasPower(IHISCETeim.Web.Permission.查看))
             {%>
            <li><a class="add" href="MacModel/OMarketQualificationView.aspx?MQID={sid_user}" target="dialog" rel="OMarketQualificationAdd"  title="查看市场验证项"  max=false  mask=true  maxable=false  minable=false  resizable=true drawable=true  width="780" height="620"><span>查看</span></a></li>
           <%} %>
          <% if (HasPower(IHISCETeim.Web.Permission.新增))
             {%>
            <li><a class="add" href="MacModel/OMarketQualificationAdd.aspx" target="dialog" rel="OMarketQualificationAdd"  title="新增市场验证项"  max=false  mask=true  maxable=false  minable=false  resizable=true drawable=true   width="780" height="490"><span>新增</span></a></li>
           <%} %>
           <% if (HasPower(IHISCETeim.Web.Permission.修改))
              {%>
            <li><a class="edit" href="MacModel/OMarketQualificationEdit.aspx?MQID={sid_user}" target="dialog" rel="OMarketQualificationEdit" title="修改新增市场验证项" max=false  mask=true  maxable=false  minable=false  resizable=true drawable=true  width="780" height="620"><span>修改</span></a></li>
          <%} %>
            <% if (HasPower(IHISCETeim.Web.Permission.删除))
               {%>
            <li><a class="delete" href="sysAjaxDone.ashx?ajaxmethod=DeleteOMarketQualification&MQID={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
           <%} %>
            <% if (HasPower(IHISCETeim.Web.Permission.新增))
             {%>
            <li><a class="add" href="MacModel/OMarketQualificationAddDetail.aspx?MQID={sid_user}" target="dialog" rel="OMarketQualificationAddDetail"  title="添加市场验证调查记录" max=false  mask=true  maxable=false  minable=false  resizable=true drawable=true  width="800" height="600"><span>添加调查记录</span></a></li>
           <%} %>
            <% if (HasPower(IHISCETeim.Web.Permission.导出))
                {%>
            <li><a class="icon" href="MacModel/ExportOMarketQualificationList.aspx?orderField=<%=orderField %>&orderDirection=<%=orderDirection %>&ItemCode=<%= Server.UrlEncode( ItemCode) %>&SupplierName=<%= Server.UrlEncode( SupplierName) %>&SerialNumber=<%=SerialNumber %>" target="_blank" title="确定要导出吗?"><span>导出</span></a></li>
            <%} %>
        </ul>
    </div>
    
    <table class="table" layouth="112" width="2000">
        <thead>
            <tr  >  
                <th width="80px" orderField="SupplerName" class="asc">供应商</th> 
                 <th width="100px" orderField="ItemCode" class="asc">物料号</th>
                <th width="120px">物料名称</th>
                 <th width="120px">旧件动态</th>
                <th width="60px" orderField="MachineType" class="asc">机型</th>
                <th width="100px" orderField="SerialNumbe" class="asc">机号</th>                
                <th width="100px">代理商</th>               
                <th width="80px" align="center">客户名称</th>
                <th width="80px" >手机</th>
                <th width="80px" orderField="InsertDate" class="asc">安装日期</th> 
                <th width="60px" orderField="InsertHour" class="asc">安装小时数</th>
                <th width="80px">连继试验小时</th>
                <th width="80px">最后一次调查时间</th> 
                <th width="80px">最后一次小时数</th>
                <th width="80px">最后一次状态</th>
                <th width="80px">说明</th>        
            </tr>
        </thead>
        <tbody>
    <asp:repeater id="rpMenu" runat="server">
      
        <ItemTemplate>
            <tr target="sid_user" rel="<%# Eval("MQID") %>" style="color:<%# Convert.ToBoolean(Eval("STATE"))?"#324564":"#CCC" %> ;">
				<td ><%# Eval("SupplerName")%></td>
                <td>
                  <%# Eval("ItemCode")%>
                </td>
                <td><%# Eval("ItemName")%></td>
                 <td><%# Eval("OldItemStatus")%></td>
                <td ><%# Eval("MachineType")%></td>
                <td >
                    <%# Eval("SerialNumber")%>
                </td>              
                <td><%# Eval("AgentName")%></td>
                <td >
                    <%# Eval("CustomerName")%>
                </td>
				<td >
                    <%# Eval("CustomerMobile")%>
                </td>
                <td ><%# Eval("InsertDate")%></td>
                <td><%# Eval("InsertHour")%></td>
                <td><%# Eval("TestHour")%></td>
                <td><%# Eval("LastSurveyDate")%></td>
                <td><%# Eval("LastSurveyHour")%></td>
                <td><%# Eval("LastSurveyState") == DBNull.Value ? "" : Convert.ToBoolean(Eval("LastSurveyState")) ? "正常" : "不正常"%></td>
                <td><%# Eval("LastSurveyRemark")%></td>
			</tr>
           
        </ItemTemplate>
        
    </asp:repeater>
                </tbody>
         </table>
  
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
               <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>
</div>
</form>
